﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class WorkTime_WorkTimeOutList : System.Web.UI.Page
{
    private Srvtools.WebDataSet WMaster;

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            InitializeComponent();

            Master.DataSource = WMaster;
        }
        this.WebClientQuery1.Show(this.Panel1);

        MasterPage_MasterPage mpg = (MasterPage_MasterPage)this.Page.Master;
        mpg.HelpHref = "~/Help/WorkTime/员工外出列表.htm";
        mpg.PageName = "员工外出列表";
        mpg.PicUrl = "";
        mpg.IntiBar();

    }

    private void InitializeComponent()
    {
        System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(WorkTime_WorkTimeOutList));
        this.WMaster = new Srvtools.WebDataSet();
        ((System.ComponentModel.ISupportInitialize)(this.WMaster)).BeginInit();
        // 
        // WMaster
        // 
        this.WMaster.Active = true;
        this.WMaster.AlwaysClose = false;
        this.WMaster.DeleteIncomplete = true;
        this.WMaster.Guid = null;
        this.WMaster.LastKeyValues = null;
        this.WMaster.PacketRecords = 100;
        this.WMaster.Position = -1;
        this.WMaster.RemoteName = "SWorkTime.View_WorkTime_Out";
        this.WMaster.ServerModify = false;
        ((System.ComponentModel.ISupportInitialize)(this.WMaster)).EndInit();

    }

    public override void DataBind()
    {
        wgvMaster.DataBind();
    }

    protected void WebNavigator1_Command(object sender, CommandEventArgs e)
    {
        if (e.CommandName == "cmdClientQuery")
        {
            WebClientQuery1.Execute();
        }
    }

    protected void btnSearch_Click(object sender, EventArgs e)
    {
        WebClientQuery1.Execute(Panel1);
        DataBind();
    }

    protected void btnClear_Click(object sender, EventArgs e)
    {
        WebClientQuery1.Clear(Panel1);
        Master.DataBind();
        wgvMaster.DataBind();
    }
}
